package com.bupt.ilink.service;

import com.bupt.ilink.entity.User;
import com.bupt.ilink.entity.userManagement.DTO.UserMetaResponse;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.provisioning.UserDetailsManager;

import java.util.List;
import java.util.Optional;

public interface UserService extends UserDetailsService, UserDetailsManager{
    UserMetaResponse getUserMetaById(String userId);

    //更新用户信息数据
    boolean updateUserMetaById(String userId, UserMetaResponse userMetaResponse);

    void changePassword(String userId, String oldPassword, String newPassword);
}
